package com.dingwei.superiordiary.bean;

import com.bobomee.android.mentions.model.FormatRange;

public class UserConvert implements FormatRange.FormatData {

    public static final String USER_FORMART = "&nbsp;<user id='%s' name='%s'>%s</user>&nbsp;";
    private String user_id;
    private String nikename;

    public UserConvert(String user_id, String nikename) {
        this.user_id = user_id;
        this.nikename = "@"+nikename;
    }

    @Override
    public CharSequence formatCharSequence() {
        return String.format(USER_FORMART, user_id, nikename, nikename);
    }
}